import { ReactNode } from 'react'
/**
 * 预留组件，为后续统一处理路由模块准备
 *
 * @param {string} name - The name of the keeper.
 * @param {ReactNode} children - The children elements to render.
 * @returns {ReactNode} - The rendered children elements.
 */
/* eslint-disable */
function Keeper({ name, children }: { name: string; children: ReactNode }) {
  return <>{children}</>
}

export default function KeeperHoc(name: string, Component: ReactNode): ReactNode {
  return (
    <Keeper key={name} name={name}>
      {Component}
    </Keeper>
  )
}
